document.addEventListener('copy', event => {
  if (navigator.clipboard && navigator.clipboard.writeText) {
    event.preventDefault();
    return navigator.clipboard.writeText('');
  }
});
document.addEventListener('contextmenu', event => {
  event.preventDefault();
});